@import "./variables.scss";
@import "./mixin.scss";
@import "./transition.scss";
@import "./element-ui.scss";
@import "./sidebar.scss";
@import "./btn.scss";

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
    Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right !important;
}

.fl {
  float: left !important;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: inline-block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  margin: 0 30px 0 30px;
  //padding: 16px 10px 20px 5px;
  padding: 0px 10px 70px 20px;
  background: linear-gradient(180deg, #f6f9ff 0%, #f5f9ff 100%);
  //border-radius: 20px 20px 20px 20px;
  position: relative;
  z-index: 22;
  overflow-y: scroll;
  height: calc(100vh - 100px);
  top: -150px;
  min-width: 1000px;
}
.search-box {
  //padding: 10px 20px;
  padding: 20px 30px 6px 30px;
  background: #fff;
  border-radius: 5px;
  margin-bottom: 10px;
}
.content-box {
  padding: 10px 20px 30px;
  background: #fff;
}
.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center;
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(
    90deg,
    rgba(32, 182, 249, 1) 0%,
    rgba(32, 182, 249, 1) 0%,
    rgba(33, 120, 241, 1) 100%,
    rgba(33, 120, 241, 1) 100%
  );

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

.flex {
  display: flex;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-column-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.flex1 {
  flex: 1;

  .el-input {
    width: 100% !important;
  }

  .el-select {
    width: 100% !important;
  }
}

.flex2 {
  flex: 2;
}

.flex3 {
  flex: 3;
}

.width0 {
  width: 0;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.textoverflow {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  word-break: break-all;
}

.textoverflow2 {
  display: -webkit-box !important;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.nowrap {
  white-space: nowrap;
}

.text-end {
  text-align: end;
}

.table-action-btn-primary {
  background-color: #ecf3fd !important;
  color: #3184ff !important;
  padding: 5px 10px !important;
}

.table-action-btn-danger {
  background-color: #fff3f3 !important;
  color: #ff6867 !important;
  padding: 5px 10px !important;
}

.ant-table-thead > tr > th {
  color: #666666 !important;
  font-size: 14px;
  font-weight: bold;
  background: #ffffff !important;
}

.ant-table-tbody tr {
  font-weight: 400;
  font-size: 14px;
  color: #333333 !important;
}

//.ant-table-tbody tr:nth-child(odd) {
//  background-color: #FFFFFF !important;
//}
//
//.ant-table-tbody tr:nth-child(even) td {
//  background-color: #F5F9FF !important;
//}

.ant-radio-checked .ant-radio-inner {
  border-color: #3184ff !important;
}

.ant-radio-checked .ant-radio-inner::after {
  background-color: #3184ff !important;
}

//.ant-table-tbody > tr > td {
//  border-bottom: none !important;
//}

//.ant-table-placeholder {
//  border-top: none !important;
//  border-bottom: none !important;
//}

.ant-table-row-expand-icon:focus,
.ant-table-row-expand-icon:hover {
  color: #3184ff !important;
}

.ant-table-tbody
  > tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected)
  > td {
  background: #f5f7fa;
}

.app-container,
el_dialog,
.el-drawer {
  .el-form {
    .el-row {
      .el-input {
        width: 100% !important;
      }

      .el-select {
        width: 100% !important;

        .el-input {
          width: 100% !important;
        }
      }

      .el-date-editor {
        width: 100% !important;
      }

      .el-cascader {
        width: 100% !important;
      }

      .el-autocomplete {
        width: 100% !important;
      }

      .el-date-editor {
        width: 100% !important;
      }

      .el-textarea {
        width: 100% !important;
      }

      .el-range-editor {
        width: 100% !important;
      }
    }
  }

  .el-input--medium {
    font-size: 14px !important;
  }

  // .el-input--medium .el-input__inner {
  //   height: 36px !important;
  //   line-height: 36px !important;
  // }

  .el-range-editor--medium.el-input__inner {
    height: 36px !important;
    line-height: 36px !important;
  }

  .el-range-editor--medium .el-range-separator {
    height: 36px !important;
    line-height: 36px !important;
  }

  .el-range__icon {
    height: 36px !important;
    line-height: 36px !important;
  }

  .el-range-separator,
  .el-range-editor--medium .el-range-input {
    font-size: 14px !important;
  }
}

.queryForm {
  margin-bottom: 10px !important;
}

.app-container .el-aside {
  background-color: #ffffff !important;
}

.app-container .el-main {
  padding-top: 0 !important;
}

.nowrap-box .el-row {
  background-color: #ffffff !important;
  padding: 10px !important;
  box-sizing: border-box !important;
}

.nowrap-box {
  padding-top: 0 !important;
}

.group-box {
  padding-top: 10px !important;
}

.width100 {
  width: 100px;
}

.width80 {
  width: 80px;
}

.width130 {
  width: 130px;
}

.dialog-default-height {
  max-height: 550px;
  overflow-y: scroll;
}

// .el-button {
//   border-radius: 0px !important;
// }

.searchInput {
  width: 240px !important;
  margin-right: 10px;
}

.el-row.single-row {
  background-color: #ffffff !important;
  padding: 10px 0 !important;
}

.no-bottom {
  margin-bottom: 0 !important;
}

.section-dialog {
  .el-dialog__body {
    padding: 10px 20px !important;
    background-color: #ebeef3 !important;
  }

  .el-dialog__footer {
    background-color: #ebeef3 !important;
    padding: 10px 20px 20px 20px !important;
  }

  .title-card-box {
    padding: 10px !important;
    background-color: #ffffff !important;
  }

  .el-form {
    background-color: transparent !important;
    padding: 0 !important;
  }
}

.p-color {
  color: #1890ff;
}
.d-color {
  // danger
  color: #f5222d;
}
.mb10 {
  margin-bottom: 10px;
}
.mb20 {
  margin-bottom: 20px;
}
.form-tips {
  color: #999;
  font-size: 12px;
  line-height: 20px;
  margin-top: 5px;
}
.detail-info-header {
  display: flex;
  justify-content: space-between;
  padding: 20px 0px;
  .d-i-title {
    font-size: 18px;
    font-weight: 600;
  }
}
.detail-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  margin-top: 20px;
}
.d-sub-title {
  font-size: 14px;
  margin-bottom: 10px;
}
.copy-i {
  margin-left: 10px;
  cursor: pointer;
  color: #1890ff;
}
//滚动条样式
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
  background: transparent;
}
::-webkit-scrollbar-track-piece {
  background: none;
}
::-webkit-scrollbar-thumb {
  height: 10px;
  border: 2px solid rgba(0, 0, 0, 0);
  border-radius: 12px;
  background-clip: padding-box;
  background-color: #ccd4d4;
  //box-shadow: inset -1px -1px 0px #ccd4d4, inset 1px 1px 0px #ccd4d4;
}
.formStyle {
  .el-form-item {
    margin-bottom: 14px;
  }
  .el-form-item__label {
    font-size: 14px !important;
    line-height: 34px !important;
    display: flex!important;
    align-items: center!important;
  }
  .el-form-item.is-required .el-form-item__label::before {
    content: '*';
    color: red;        /* 星号颜色 */
    font-size: 16px;   /* 星号大小 */
    margin-right: 5px; /* 星号和标签之间的间距 */
    line-height: 1;    /* 调整行高 */
    height: 8px;
  }
  .el-input__inner {
    height: 36px;
    color: #222222;
    font-size: 14px;
    background: #f8f8f8;
    border: none;
    padding: 0 12px;
  }
  .el-input.is-disabled .el-input__inner {
    background-color: #e8edf5;
  }
  .vue-treeselect__control {
    background: #f8f8f8;
    border: none;
    line-height: normal;
  }

  .edui-default .edui-editor {
    z-index: 99 !important;
  }
  .el-date-editor {
    .el-input__prefix {
      position: absolute;
      left: 430px;
      top: 0;
    }
    input {
      padding-left: 12px;
    }
  }
  .el-date-editor .el-range-input {
    background: #f8f8f8;
  }
  .el-date-editor .el-range__icon {
    position: absolute;
    left: 435px;
    top: 0;
  }
  .el-radio__label,
  .el-checkbox__label {
    color: #222222;
  }
  .el-textarea__inner {
    background: #f8f8f8;
    border: none;
    color: #222222;
    font-size: 14px;
  }
  .el-textarea.is-disabled .el-textarea__inner {
    background-color: #e8edf5;
  }
  .el-textarea .el-input__count {
    background: #f8f8f8;
  }
}
.tableStyle {
  .el-table__cell {
    height: 44px !important;
    font-size: 14px !important;
    color: #666666 !important;
  }
  .el-button {
    font-size: 14px;
  }
  .el-input--medium .el-input__inner {
    background: #ffffff;
    border: 1px solid #ededed;
  }
  .el-radio__label {
    padding-left: 0;
  }
  .vue-treeselect__control {
    background: #ffffff;
    border: 1px solid #ededed;
    line-height: normal;
  }
}
.dialogStyle {
  background: #ffffff !important;
  border-radius: 10px !important;
  .el-dialog__title {
    font-weight: bold;
    font-size: 16px;
    color: #222222;
  }
  .el-dialog__header {
    padding: 20px 20px 30px;
  }
  .el-dialog__body {
    padding: 0 30px;
  }
  .el-dialog__footer {
    padding: 30px;
  }
  .dialog-footer {
    text-align: center;
    .el-button {
      width: 80px;
      height: 36px;
      font-size: 14px;
      border-radius: 4px;
      border: none;
    }
    .el-button:nth-of-type(1) {
      background: #ffffff;
      color: #666666;
      border: 1px solid #dddddd;
    }
    .el-button:nth-of-type(2) {
      background: #2675d9;
      color: #ffffff;
      margin-left: 20px;
    }
  }
}
.tableHtml {
  border: 1px solid #ededed;
  width: 100%;
  border-collapse: collapse;

  tr {
    td {
      border: 1px solid #ededed;
      box-sizing: border-box;
      font-size: 14px;
      word-break: break-all;
      word-wrap: break-word;
      text-align: center;
      white-space: normal;
      padding: 6px 10px;
      color: #666666;
      .el-input--medium .el-input__inner {
        background: #ffffff;
        border: 1px solid #ededed;
      }
      div {
        height: 36px;
        line-height: 36px;
      }
    }
  }
  tr:nth-of-type(1) {
    td {
      background: #fafafa;
      color: #666666;
      font-weight: bold;
      height: 31px;
      line-height: 31px;
    }
  }
}
.messageBoxStyle {
  background: #ffffff !important;
  border-radius: 10px !important;
  .el-message-box__title {
    font-weight: bold;
    font-size: 16px;
    color: #222222;
  }
  .el-message-box__header {
    padding: 20px 20px 10px;
  }
  .el-message-box__content {
    padding: 0 30px;
  }
  .el-message-box__btns {
    padding: 20px 20px 10px;
    text-align: center;
    .el-button {
      width: 80px;
      height: 36px;
      font-size: 14px;
      border-radius: 4px;
      border: none;
    }
    .el-button:nth-of-type(1) {
      background: #ffffff;
      color: #666666;
      border: 1px solid #dddddd;
    }
    .el-button:nth-of-type(2) {
      background: #2675d9;
      color: #ffffff;
      margin-left: 20px;
    }
  }
}
.searchForm {
  .el-form-item {
    margin-bottom: 15px;
  }
  .el-input__inner {
    color: #666666;
  }
  .el-date-editor .el-range__icon {
    position: absolute;
    left: 275px;
    top: 0;
  }


  .el-input-group__prepend {
    background: #ffffff;
    .el-input__inner {
      color: #666666 !important;
    }
  }
}

.upload-demo{
 .el-button--primary{
   background: #fff!important;
   border: 1px solid #2675D9!important;
   color: #2675D9!important;
 }
}
